home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Inverted / metacity-1 / metacity-theme-1.xml
Encoding:
Extensible Markup Language  |  2009-03-17  |  46.1 KB  |  955 lines

  1. <?xml version="1.0"?>
  2. <!--     $Id: metacity-theme-1.xml 1263 2007-05-03 10:56:34Z acimitan $     -->
  3. <metacity_theme>
  4. <info>
  5.     <name>Inverted</name>
  6.     <author>Daniel Borgmann <daniel.borgmann@gmail.com>, Andrea Cimitan <andrea.cimitan@gmail.com></author>
  7.     <copyright> 2005-2007 Daniel Borgmann, Andrea Cimitan</copyright>
  8.     <date>Apr, 2007</date>
  9.     <description>The Clearlooks "Inverted" Metacity Theme</description>
  10. </info>
  11.  
  12. <!-- ::: GEOMETRY ::: -->
  13. <frame_geometry name="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="false" rounded_bottom_right="false">
  14.     <distance name="left_width" value="4"/>
  15.     <distance name="right_width" value="4"/>
  16.     <distance name="bottom_height" value="4"/>
  17.     <distance name="left_titlebar_edge" value="4"/>
  18.     <distance name="right_titlebar_edge" value="4"/>
  19.     <aspect_ratio name="button" value="1.0"/>
  20.     <distance name="title_vertical_pad" value="0"/>
  21.     <border name="title_border" left="2" right="2" top="4" bottom="3"/>
  22.     <border name="button_border" left="1" right="1" top="2" bottom="2"/>
  23. </frame_geometry>
  24.  
  25. <frame_geometry name="shaded" parent="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true"/>
  26.  
  27. <frame_geometry name="normal_maximized" parent="normal" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
  28.     <!-- strip frame spacing off the normal geometry when maximised -->
  29.     <distance name="left_width" value="0"/>
  30.     <distance name="right_width" value="0"/>
  31.     <distance name="bottom_height" value="1"/>
  32.     <distance name="left_titlebar_edge" value="1"/>
  33.     <distance name="right_titlebar_edge" value="1"/>
  34. </frame_geometry>
  35.  
  36. <frame_geometry name="utility" title_scale="small" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
  37.     <distance name="left_width" value="4"/>
  38.     <distance name="right_width" value="4"/>
  39.     <distance name="bottom_height" value="4"/>
  40.     <distance name="left_titlebar_edge" value="4"/>
  41.     <distance name="right_titlebar_edge" value="4"/>
  42.     <distance name="title_vertical_pad" value="0"/>
  43.     <border name="title_border" left="2" right="2" top="4" bottom="3"/>
  44.     <border name="button_border" left="0" right="0" top="2" bottom="2"/>
  45.     <aspect_ratio name="button" value="1"/>
  46. </frame_geometry>
  47.  
  48. <frame_geometry name="border" has_title="false">
  49.     <distance name="left_width" value="4"/>
  50.     <distance name="right_width" value="4"/>
  51.     <distance name="bottom_height" value="4"/>
  52.     <distance name="left_titlebar_edge" value="0"/>
  53.     <distance name="right_titlebar_edge" value="0"/>
  54.     <distance name="button_width" value="0"/>
  55.     <distance name="button_height" value="0"/>
  56.     <distance name="title_vertical_pad" value="4"/>
  57.     <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  58.     <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  59. </frame_geometry>
  60.  
  61. <!-- button minimum size -->
  62. <constant name="Bmin" value="7"/>
  63. <!-- button inside padding -->
  64. <constant name="Bpad" value="6"/>
  65.  
  66. <!-- ::: CORNERS ::: -->
  67. <draw_ops name="corners_outline_selected_top">
  68.     <!-- top left -->
  69.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="1" y1="3" x2="1" y2="4"/>
  70.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="2" y1="2" x2="2" y2="2"/>
  71.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="3" y1="1" x2="4" y2="1"/>
  72.  
  73.     <!-- top right -->
  74.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="width-2" y1="3" x2="width-2" y2="4"/>
  75.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="width-3" y1="2" x2="width-3" y2="2"/>
  76.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="width-4" y1="1" x2="width-5" y2="1"/>
  77. </draw_ops>
  78.  
  79. <draw_ops name="corners_outline_top">
  80.     <!-- top left -->
  81.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="1" y1="3" x2="1" y2="4"/>
  82.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="2" x2="2" y2="2"/>
  83.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="3" y1="1" x2="4" y2="1"/>
  84.  
  85.     <!-- top right -->
  86.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-2" y1="3" x2="width-2" y2="4"/>
  87.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-3" y1="2" x2="width-3" y2="2"/>
  88.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-4" y1="1" x2="width-5" y2="1"/>
  89. </draw_ops>
  90.  
  91. <draw_ops name="corners_outline_selected_bottom">
  92.     <!-- bottom left -->
  93.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="1" y1="height-4" x2="1" y2="height-5"/>
  94.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="2" y1="height-3" x2="2" y2="height-3"/>
  95.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="2" y1="height-2" x2="4" y2="height-2"/>
  96.  
  97.     <!-- bottom right -->
  98.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
  99.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
  100.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
  101. </draw_ops>
  102.  
  103. <draw_ops name="corners_outline_bottom">
  104.     <!-- bottom left -->
  105.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="1" y1="height-4" x2="1" y2="height-5"/>
  106.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="height-3" x2="2" y2="height-3"/>
  107.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="height-2" x2="4" y2="height-2"/>
  108.  
  109.     <!-- bottom right -->
  110.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
  111.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
  112.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
  113. </draw_ops>
  114.  
  115. <draw_ops name="corners_highlight">
  116.     <!-- ** corner highlight for left top ** -->
  117.     <line color="shade/gtk:bg[SELECTED]/1.1" x1="2" y1="3" x2="2" y2="4"/>
  118.     <line color="shade/gtk:bg[SELECTED]/1.1" x1="3" y1="2" x2="4" y2="2"/>
  119.  
  120.     <!-- ** corner highlight for right top ** -->
  121.     <line color="shade/gtk:bg[SELECTED]/0.98" x1="width-3" y1="3" x2="width-3" y2="4"/>
  122.     <line color="shade/gtk:bg[SELECTED]/1.09" x1="width-5" y1="2" x2="width-4" y2="2"/>
  123.  
  124.     <!-- ** corner highlight for left bottom ** -->
  125.     <!--<line color="shade/gtk:bg[NORMAL]/1.3" x1="2" y1="height-4" x2="2" y2="height-5"/>
  126.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="3" y1="height-3" x2="4" y2="height-3"/>-->
  127.  
  128.     <!-- ** corner highlight for right bottom ** -->
  129.     <!--<line color="shade/gtk:bg[NORMAL]/0.88" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
  130.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>-->
  131. </draw_ops>
  132.  
  133. <draw_ops name="corners_highlight_unfocused">
  134.     <!-- ** corner highlight for left top ** -->
  135.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="2" y1="3" x2="2" y2="4"/>
  136.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="3" y1="2" x2="4" y2="2"/>
  137.  
  138.     <!-- ** corner highlight for right top ** -->
  139.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width-3" y1="3" x2="width-3" y2="4"/>
  140.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="width-5" y1="2" x2="width-4" y2="2"/>
  141.  
  142.     <!-- ** corner highlight for left bottom ** -->
  143.     <!--<line color="shade/gtk:bg[NORMAL]/1.3" x1="2" y1="height-4" x2="2" y2="height-5"/>
  144.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="3" y1="height-3" x2="4" y2="height-3"/>-->
  145.  
  146.     <!-- ** corner highlight for right bottom ** -->
  147.     <!--<line color="shade/gtk:bg[NORMAL]/0.88" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
  148.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>-->
  149. </draw_ops>
  150.  
  151. <draw_ops name="corners_highlight_shaded">
  152.     <!-- ** corner highlight for left top ** -->
  153.     <line color="shade/gtk:bg[SELECTED]/1.1" x1="2" y1="3" x2="2" y2="4"/>
  154.     <line color="shade/gtk:bg[SELECTED]/1.1" x1="3" y1="2" x2="4" y2="2"/>
  155.  
  156.     <!-- ** corner highlight for right top ** -->
  157.     <line color="shade/gtk:bg[SELECTED]/0.98" x1="width-3" y1="3" x2="width-3" y2="4"/>
  158.     <line color="shade/gtk:bg[SELECTED]/1.09" x1="width-5" y1="2" x2="width-4" y2="2"/>
  159.  
  160.     <!-- ** corner highlight for left bottom ** -->
  161.     <line color="shade/gtk:bg[SELECTED]/1.11" x1="2" y1="height-4" x2="2" y2="height-5"/>
  162.     <line color="shade/gtk:bg[SELECTED]/0.98" x1="3" y1="height-3" x2="4" y2="height-3"/>
  163.  
  164.     <!-- ** corner highlight for right bottom ** -->
  165.     <line color="shade/gtk:bg[SELECTED]/0.98" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
  166.     <line color="shade/gtk:bg[SELECTED]/0.98" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
  167. </draw_ops>
  168.  
  169. <draw_ops name="corners_highlight_shaded_unfocused">
  170.     <!-- ** corner highlight for left top ** -->
  171.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="2" y1="3" x2="2" y2="4"/>
  172.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="3" y1="2" x2="4" y2="2"/>
  173.  
  174.     <!-- ** corner highlight for right top ** -->
  175.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width-3" y1="3" x2="width-3" y2="4"/>
  176.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="width-5" y1="2" x2="width-4" y2="2"/>
  177.  
  178.     <!-- ** corner highlight for left bottom ** -->
  179.     <line color="shade/gtk:bg[NORMAL]/0.99" x1="2" y1="height-4" x2="2" y2="height-5"/>
  180.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="3" y1="height-3" x2="4" y2="height-3"/>
  181.  
  182.     <!-- ** corner highlight for right bottom ** -->
  183.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
  184.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
  185. </draw_ops>
  186.  
  187. <draw_ops name="window_bg">
  188.     <rectangle color="gtk:bg[NORMAL]" filled="true" x="0" y="0" width="width" height="height"/>
  189. </draw_ops>
  190.  
  191. <!-- ::: BEVEL FOCUSED ::: -->
  192. <draw_ops name="bevel">
  193.     <include name="window_bg"/>
  194.     <!-- ** titlebar outline ** -->
  195.     <rectangle color="shade/gtk:bg[SELECTED]/0.55" filled="false" x="0" y="0" width="width - 1" height="title_height + 6"/>
  196.  
  197.     <!-- ** 3d beveled frame ** -->
  198.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="1" y1="height - 2" x2="width - 2" y2="height - 2"/>
  199.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width - 2" y1="3" x2="width - 2" y2="height - 2"/>
  200.     <line color="shade/gtk:bg[NORMAL]/1.3" x1="3" y1="1" x2="width - 4" y2="1"/>
  201.     <line color="shade/gtk:bg[NORMAL]/1.3" x1="1" y1="3" x2="1" y2="height - 2"/>
  202.  
  203.     <line color="shade/gtk:bg[SELECTED]/1.05" x1="2" y1="title_height + 5" x2="width - 3" y2="title_height + 5"/>
  204.     <line color="shade/gtk:bg[SELECTED]/0.95" x1="width - 2" y1="2" x2="width - 2" y2="title_height + 6"/>
  205.     <line color="shade/gtk:bg[SELECTED]/1.1" x1="1" y1="1" x2="width - 2" y2="1"/>
  206.     <line color="shade/gtk:bg[SELECTED]/1.12" x1="1" y1="2" x2="1" y2="title_height + 5"/>
  207.  
  208.     <!-- ** fancy gradient ** -->
  209.     <gradient type="vertical" x="2" y="top_height/2" width="width-4" height="top_height/2-1">
  210.         <color value="shade/gtk:bg[SELECTED]/1.0"/>
  211.         <color value="shade/gtk:bg[SELECTED]/1.05"/>
  212.     </gradient>
  213.     <gradient type="vertical" x="2" y="2" width="width-4" height="top_height/2-2">
  214.         <color value="shade/gtk:bg[SELECTED]/0.95"/>
  215.         <color value="shade/gtk:bg[SELECTED]/1.0"/>
  216.     </gradient>
  217.  
  218.     <line color="shade/gtk:bg[SELECTED]/0.7" x1="1" y1="title_height + 6" x2="width - 2" y2="title_height + 6"/>
  219.  
  220.     <!-- ** border outline ** -->
  221.     <line color="shade/gtk:bg[NORMAL]/0.45" x1="0" y1="title_height + 6" x2="0" y2="height"/>
  222.     <line color="shade/gtk:bg[NORMAL]/0.45" x1="width - 1" y1="title_height + 6" x2="width - 1" y2="height"/>
  223.     <line color="shade/gtk:bg[NORMAL]/0.45" x1="1" y1="height - 1" x2="width - 2" y2="height - 1"/>
  224. </draw_ops>
  225.  
  226. <draw_ops name="bevel_maximized">
  227.     <!-- ** 3d beveled frame ** -->
  228.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="0" y1="0" x2="width" y2="0"/>
  229.     <line color="shade/gtk:bg[SELECTED]/1.15" x1="0" y1="1" x2="width" y2="1"/>
  230.     <line color="shade/gtk:bg[SELECTED]/1.05" x1="0" y1="title_height + 5" x2="width" y2="title_height + 5"/>
  231.  
  232.     <!-- ** fancy gradient ** -->
  233.     <gradient type="vertical" x="0" y="top_height/2" width="width" height="top_height/2-1">
  234.         <color value="shade/gtk:bg[SELECTED]/1.0"/>
  235.         <color value="shade/gtk:bg[SELECTED]/1.05"/>
  236.     </gradient>
  237.     <gradient type="vertical" x="0" y="1" width="width" height="top_height/2-1">
  238.         <color value="shade/gtk:bg[SELECTED]/0.95"/>
  239.         <color value="shade/gtk:bg[SELECTED]/1.0"/>
  240.     </gradient>
  241.  
  242.     <line color="shade/gtk:bg[SELECTED]/0.7" x1="0" y1="title_height + 6" x2="width" y2="title_height + 6"/>
  243.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="0" y1="height-1" x2="width" y2="height-1"/>
  244. </draw_ops>
  245.  
  246. <draw_ops name="round_bevel">
  247.     <include name="bevel"/>
  248.     <include name="corners_outline_selected_top"/>
  249.     <!--<include name="corners_outline_bottom"/>-->
  250.     <include name="corners_highlight"/>
  251. </draw_ops>
  252.  
  253. <draw_ops name="bevel_shaded">
  254.     <include name="bevel"/>
  255.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="0" y1="height-1" x2="width" y2="height-1"/>
  256. </draw_ops>
  257.  
  258. <draw_ops name="round_bevel_shaded">
  259.     <include name="bevel"/>
  260.     <include name="corners_outline_selected_top"/>
  261.     <include name="corners_outline_selected_bottom"/>
  262.     <include name="corners_highlight_shaded"/>
  263.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="5" y1="height-1" x2="width-6" y2="height-1"/>
  264. </draw_ops>
  265.  
  266. <!-- ::: BEVEL UNFOCUSED ::: -->
  267. <draw_ops name="bevel_unfocused">
  268.     <include name="window_bg"/>
  269.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="1" y1="height - 2" x2="width - 2" y2="height - 2"/>
  270.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width - 2" y1="2" x2="width - 2" y2="height - 2"/>
  271.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="1" y1="1" x2="width - 2" y2="1"/>
  272.     <line color="shade/gtk:bg[NORMAL]/1.0" x1="1" y1="2" x2="1" y2="height - 2"/>
  273.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="2" y1="title_height + 5" x2="width - 3" y2="title_height + 5"/>
  274.  
  275.     <!-- ** fancy gradient ** -->
  276.     <gradient type="vertical" x="2" y="top_height/2" width="width-4" height="top_height/2-1">
  277.         <color value="shade/gtk:bg[NORMAL]/0.95"/>
  278.         <color value="shade/gtk:bg[NORMAL]/0.98"/>
  279.     </gradient>
  280.     <gradient type="vertical" x="2" y="2" width="width-4" height="top_height/2-2">
  281.         <color value="shade/gtk:bg[NORMAL]/0.9"/>
  282.         <color value="shade/gtk:bg[NORMAL]/0.94"/>
  283.     </gradient>
  284.  
  285.     <line color="shade/gtk:bg[NORMAL]/0.7" x1="1" y1="title_height + 6" x2="width - 2" y2="title_height + 6"/>
  286.     <rectangle color="shade/gtk:bg[NORMAL]/0.55" filled="false" x="0" y="0" width="width - 1" height="height - 1"/>
  287. </draw_ops>
  288.  
  289. <draw_ops name="bevel_maximized_unfocused">
  290.     <!-- ** 3d beveled frame ** -->
  291.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="0" y1="0" x2="width" y2="0"/>
  292.     <line color="shade/gtk:bg[NORMAL]/1.0" x1="0" y1="1" x2="width" y2="1"/>
  293.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="0" y1="title_height + 5" x2="width" y2="title_height + 5"/>
  294.  
  295.     <!-- ** fancy gradient ** -->
  296.     <gradient type="vertical" x="0" y="top_height/2" width="width" height="top_height/2-1">
  297.         <color value="shade/gtk:bg[NORMAL]/0.94"/>
  298.         <color value="shade/gtk:bg[NORMAL]/0.98"/>
  299.     </gradient>
  300.     <gradient type="vertical" x="0" y="2" width="width" height="top_height/2-2">
  301.         <color value="shade/gtk:bg[NORMAL]/0.9"/>
  302.         <color value="shade/gtk:bg[NORMAL]/0.94"/>
  303.     </gradient>
  304.  
  305.     <line color="shade/gtk:bg[NORMAL]/0.7" x1="0" y1="title_height + 6" x2="width" y2="title_height + 6"/>
  306.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="0" y1="height-1" x2="width" y2="height-1"/>
  307. </draw_ops>
  308.  
  309. <draw_ops name="round_bevel_unfocused">
  310.     <include name="bevel_unfocused"/>
  311.     <include name="corners_outline_top"/>
  312.     <!--<include name="corners_outline_bottom"/>-->
  313.     <include name="corners_highlight_unfocused"/>
  314. </draw_ops>
  315.  
  316. <draw_ops name="round_bevel_unfocused_shaded">
  317.     <include name="bevel_unfocused"/>
  318.     <include name="corners_outline_top"/>
  319.     <include name="corners_outline_bottom"/>
  320.     <include name="corners_highlight_shaded_unfocused"/>
  321. </draw_ops>
  322.  
  323. <!-- ::: BORDER ::: -->
  324. <draw_ops name="border">
  325.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="1" y1="height - 2" x2="width - 2" y2="height - 2"/>
  326.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width - 2" y1="1" x2="width - 2" y2="height - 2"/>
  327.     <line color="shade/gtk:bg[NORMAL]/1.3" x1="1" y1="1" x2="width - 2" y2="1"/>
  328.     <line color="shade/gtk:bg[NORMAL]/1.3" x1="1" y1="1" x2="1" y2="height - 2"/>
  329.  
  330.     <rectangle color="shade/gtk:bg[NORMAL]/0.55" filled="false" x="0" y="0" width="width - 1" height="height - 1"/>
  331. </draw_ops>
  332.  
  333. <!-- ::: TITLES ::: -->
  334. <draw_ops name="title_text">
  335.     <title color="shade/gtk:bg[SELECTED]/0.7" x="((3 `max` (width-title_width)) / 2)" y="(((height - title_height) / 2) `max` 0) + 1"/>
  336.     <title color="shade/gtk:bg[SELECTED]/0.7" x="((3 `max` (width-title_width)) / 2)+1" y="(((height - title_height) / 2) `max` 0)"/>
  337.     <title color="shade/gtk:bg[SELECTED]/0.7" x="((3 `max` (width-title_width)) / 2)-1" y="(((height - title_height) / 2) `max` 0)"/>
  338.     <title color="shade/gtk:bg[SELECTED]/0.7" x="((3 `max` (width-title_width)) / 2)" y="(((height - title_height) / 2) `max` 0)-1"/>
  339.     <title color="#FFFFFF" x="(3 `max` (width-title_width)) / 2" y="(((height - title_height) / 2) `max` 0)"/>
  340. </draw_ops>
  341.  
  342. <draw_ops name="title_text_unfocused">
  343.     <!--<title color="shade/gtk:bg[NORMAL]/1.07" x="5 `max` (width-title_width)/2+1" y="1 `max` ((height-title_height)/2)+1"/>-->
  344.     <title color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.45" x="4 `max` (width-title_width)/2" y="0 `max` ((height-title_height)/2)"/>
  345. </draw_ops>
  346.  
  347. <draw_ops name="title">
  348.     <include name="title_text"/>
  349. </draw_ops>
  350.  
  351. <draw_ops name="title_unfocused">
  352.     <include name="title_text_unfocused"/>
  353. </draw_ops>
  354.  
  355. <!-- ::: BUTTONS ::: -->
  356. <draw_ops name="button_bg">
  357.     <!-- outside highlight -->
  358.     <gradient type="vertical" x="width-2" y="2" width="1" height="height-4">
  359.           <color value="shade/gtk:bg[SELECTED]/1.2"/>
  360.           <color value="shade/gtk:bg[SELECTED]/0.85"/>
  361.     </gradient>
  362.     <gradient type="vertical" x="width-1" y="3" width="1" height="height-6">
  363.           <color value="shade/gtk:bg[SELECTED]/1.2"/>
  364.           <color value="shade/gtk:bg[SELECTED]/0.85"/>
  365.     </gradient>
  366.     <line color="shade/gtk:bg[SELECTED]/0.95" x1="2" y1="height-2" x2="width-3" y2="height-2"/>
  367.     <line color="shade/gtk:bg[SELECTED]/0.95" x1="3" y1="height-1" x2="width-4" y2="height-1"/>
  368.  
  369.     <!-- inset -->
  370.     <gradient type="vertical" x="0" y="3" width="width" height="height-6">
  371.         <color value="shade/gtk:bg[SELECTED]/0.9"/>
  372.           <color value="shade/gtk:bg[SELECTED]/1.1"/>
  373.     </gradient>
  374.  
  375.     <line color="shade/gtk:bg[SELECTED]/0.94" x1="2" y1="0" x2="width-3" y2="0"/>
  376.     <line color="shade/gtk:bg[SELECTED]/0.93" x1="1" y1="1" x2="width-2" y2="1"/>
  377.     <line color="shade/gtk:bg[SELECTED]/0.92" x1="0" y1="2" x2="width-1" y2="2"/>
  378.     <line color="shade/gtk:bg[SELECTED]/0.92" x1="3" y1="0" x2="width-4" y2="0"/>
  379.  
  380.     <line color="shade/gtk:bg[SELECTED]/0.85" x1="2" y1="1" x2="width-3" y2="1"/>
  381.     <line color="shade/gtk:bg[SELECTED]/0.84" x1="1" y1="2" x2="width-2" y2="2"/>
  382.  
  383.     <line color="shade/gtk:bg[SELECTED]/1.09" x1="2" y1="height-1" x2="width-3" y2="height-1"/>
  384.     <line color="shade/gtk:bg[SELECTED]/1.05" x1="1" y1="height-2" x2="width-2" y2="height-2"/>
  385.     <line color="shade/gtk:bg[SELECTED]/1.05" x1="0" y1="height-3" x2="width-1" y2="height-3"/>
  386.     <line color="shade/gtk:bg[SELECTED]/1.11" x1="3" y1="height-1" x2="width-4" y2="height-1"/>
  387.  
  388.     <line color="shade/gtk:bg[SELECTED]/1.07" x1="2" y1="height-2" x2="width-3" y2="height-2"/>
  389.     <line color="shade/gtk:bg[SELECTED]/1.07" x1="1" y1="height-3" x2="width-2" y2="height-3"/>
  390.  
  391.     <!-- border outline -->
  392.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="3" y1="1" x2="width-4" y2="1"/>
  393.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="3" y1="height-2" x2="width-4" y2="height-2"/>
  394.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="1" y1="3" x2="1" y2="height-4"/>
  395.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="width-2" y1="3" x2="width-2" y2="height-4"/>
  396.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="2" y1="2" x2="width-3" y2="2"/>
  397.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="2" y1="height-3" x2="width-3" y2="height-3"/>
  398.  
  399.     <!-- border smooth effect -->
  400.     <line color="shade/gtk:bg[SELECTED]/1.12" x1="3" y1="2" x2="width-4" y2="2"/>
  401.     <line color="shade/gtk:bg[SELECTED]/1.05" x1="2" y1="3" x2="2" y2="height-4"/>
  402.     <line color="shade/gtk:bg[SELECTED]/1.05" x1="3" y1="height-3" x2="width-4" y2="height-3"/>
  403.     <line color="shade/gtk:bg[SELECTED]/1.05" x1="width-3" y1="3" x2="width-3" y2="height-4"/>
  404.  
  405.     <!-- inside highlight -->
  406.     <line color="shade/gtk:bg[SELECTED]/1.2" x1="4" y1="2" x2="width-5" y2="2"/>
  407.     <line color="shade/gtk:bg[SELECTED]/1.1" x1="2" y1="4" x2="2" y2="height-5"/>
  408.     <!-- inside shadow -->
  409.     <line color="shade/gtk:bg[SELECTED]/1.2" x1="4" y1="height-3" x2="width-5" y2="height-3"/>
  410.     <line color="shade/gtk:bg[SELECTED]/1.14" x1="width-3" y1="4" x2="width-3" y2="height-5"/>
  411.  
  412.     <!-- fill gradient -->
  413.     <gradient type="vertical" x="3" y="3" width="width-6" height="height-6">
  414.         <color value="shade/gtk:bg[SELECTED]/1.1"/>
  415.           <color value="shade/gtk:bg[SELECTED]/1.2"/>
  416.     </gradient>
  417. </draw_ops>
  418.  
  419. <draw_ops name="button_bg_unfocused">
  420.     <!-- outside highlight -->
  421.     <gradient type="vertical" x="width-2" y="2" width="1" height="height-4">
  422.           <color value="shade/gtk:bg[NORMAL]/1.2"/>
  423.           <color value="shade/gtk:bg[NORMAL]/0.85"/>
  424.     </gradient>
  425.     <gradient type="vertical" x="width-1" y="3" width="1" height="height-6">
  426.           <color value="shade/gtk:bg[NORMAL]/1.2"/>
  427.           <color value="shade/gtk:bg[NORMAL]/0.85"/>
  428.     </gradient>
  429.     <line color="shade/gtk:bg[NORMAL]/0.95" x1="2" y1="height-2" x2="width-3" y2="height-2"/>
  430.     <line color="shade/gtk:bg[NORMAL]/0.95" x1="3" y1="height-1" x2="width-4" y2="height-1"/>
  431.  
  432.     <!-- inset -->
  433.     <gradient type="vertical" x="0" y="3" width="width" height="height-6">
  434.         <color value="shade/gtk:bg[NORMAL]/0.86"/>
  435.           <color value="shade/gtk:bg[NORMAL]/1.0"/>
  436.     </gradient>
  437.  
  438.     <line color="shade/gtk:bg[NORMAL]/0.87" x1="2" y1="0" x2="width-3" y2="0"/>
  439.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="1" y1="1" x2="width-2" y2="1"/>
  440.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="0" y1="2" x2="width-1" y2="2"/>
  441.     <line color="shade/gtk:bg[NORMAL]/0.86" x1="3" y1="0" x2="width-4" y2="0"/>
  442.  
  443.     <line color="shade/gtk:bg[NORMAL]/0.78" x1="2" y1="1" x2="width-3" y2="1"/>
  444.     <line color="shade/gtk:bg[NORMAL]/0.77" x1="1" y1="2" x2="width-2" y2="2"/>
  445.  
  446.     <line color="shade/gtk:bg[NORMAL]/0.99" x1="2" y1="height-1" x2="width-3" y2="height-1"/>
  447.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="1" y1="height-2" x2="width-2" y2="height-2"/>
  448.     <line color="shade/gtk:bg[NORMAL]/0.97" x1="0" y1="height-3" x2="width-1" y2="height-3"/>
  449.     <line color="shade/gtk:bg[NORMAL]/1.0" x1="3" y1="height-1" x2="width-4" y2="height-1"/>
  450.  
  451.     <line color="shade/gtk:bg[NORMAL]/0.99" x1="2" y1="height-2" x2="width-3" y2="height-2"/>
  452.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="1" y1="height-3" x2="width-2" y2="height-3"/>
  453.  
  454.     <!-- border outline -->
  455.     <line color="shade/gtk:bg[NORMAL]/0.6" x1="3" y1="1" x2="width-4" y2="1"/>
  456.     <line color="shade/gtk:bg[NORMAL]/0.6" x1="3" y1="height-2" x2="width-4" y2="height-2"/>
  457.     <line color="shade/gtk:bg[NORMAL]/0.6" x1="1" y1="3" x2="1" y2="height-4"/>
  458.     <line color="shade/gtk:bg[NORMAL]/0.6" x1="width-2" y1="3" x2="width-2" y2="height-4"/>
  459.  
  460.     <line color="shade/gtk:bg[NORMAL]/0.6" x1="2" y1="2" x2="width-3" y2="2"/>
  461.     <line color="shade/gtk:bg[NORMAL]/0.6" x1="2" y1="height-3" x2="width-3" y2="height-3"/>
  462.  
  463.     <!-- border smooth effect -->
  464.     <line color="shade/gtk:bg[NORMAL]/0.94" x1="3" y1="2" x2="width-4" y2="2"/>
  465.     <line color="shade/gtk:bg[NORMAL]/0.94" x1="2" y1="3" x2="2" y2="height-4"/>
  466.     <line color="shade/gtk:bg[NORMAL]/0.91" x1="3" y1="height-3" x2="width-4" y2="height-3"/>
  467.     <line color="shade/gtk:bg[NORMAL]/0.90" x1="width-3" y1="3" x2="width-3" y2="height-4"/>
  468.  
  469.     <!-- inside highlight -->
  470.     <line color="shade/gtk:bg[NORMAL]/1.02" x1="4" y1="2" x2="width-5" y2="2"/>
  471.     <line color="shade/gtk:bg[NORMAL]/1.04" x1="2" y1="4" x2="2" y2="height-5"/>
  472.     <!-- inside shadow -->
  473.     <line color="shade/gtk:bg[NORMAL]/1.05" x1="4" y1="height-3" x2="width-5" y2="height-3"/>
  474.     <line color="shade/gtk:bg[NORMAL]/0.98" x1="width-3" y1="4" x2="width-3" y2="height-5"/>
  475.  
  476.     <!-- fill gradient -->
  477.     <gradient type="vertical" x="3" y="3" width="width-6" height="height-6">
  478.         <color value="shade/gtk:bg[NORMAL]/0.95"/>
  479.           <color value="shade/gtk:bg[NORMAL]/1.05"/>
  480.     </gradient>
  481. </draw_ops>
  482.  
  483. <draw_ops name="button_bg_prelight">
  484.     <include name="button_bg"/>
  485.     <tint color="shade/gtk:bg[SELECTED]/1.5" alpha="0.2" x="3" y="3" width="width-5" height="height-5"/>
  486. </draw_ops>
  487.  
  488. <draw_ops name="button_bg_pressed">
  489.     <!-- outside highlight -->
  490.     <gradient type="vertical" x="width-2" y="2" width="1" height="height-4">
  491.           <color value="shade/gtk:bg[SELECTED]/1.2"/>
  492.           <color value="shade/gtk:bg[SELECTED]/1.0"/>
  493.     </gradient>
  494.     <gradient type="vertical" x="width-1" y="3" width="1" height="height-6">
  495.           <color value="shade/gtk:bg[SELECTED]/1.2"/>
  496.           <color value="shade/gtk:bg[SELECTED]/1.0"/>
  497.     </gradient>
  498.     <line color="shade/gtk:bg[SELECTED]/1.0" x1="2" y1="height-2" x2="width-3" y2="height-2"/>
  499.     <line color="shade/gtk:bg[SELECTED]/1.0" x1="3" y1="height-1" x2="width-4" y2="height-1"/>
  500.  
  501.     <!-- border outline -->
  502.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="3" y1="1" x2="width-4" y2="1"/>
  503.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="3" y1="height-2" x2="width-4" y2="height-2"/>
  504.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="1" y1="3" x2="1" y2="height-4"/>
  505.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="width-2" y1="3" x2="width-2" y2="height-4"/>
  506.  
  507.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="2" y1="2" x2="width-3" y2="2"/>
  508.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="2" y1="height-3" x2="width-3" y2="height-3"/>
  509.  
  510.     <!-- inside shadow -->
  511.     <line color="shade/gtk:bg[SELECTED]/0.9" x1="3" y1="2" x2="width-4" y2="2"/>
  512.     <line color="shade/gtk:bg[SELECTED]/0.85" x1="2" y1="3" x2="2" y2="height-4"/>
  513.  
  514.     <!-- fill gradient -->
  515.     <gradient type="vertical" x="3" y="3" width="width-5" height="height-6">
  516.           <color value="shade/gtk:bg[SELECTED]/0.95"/>
  517.         <color value="shade/gtk:bg[SELECTED]/0.9"/>
  518.     </gradient>
  519.     <line color="shade/gtk:bg[SELECTED]/0.9" x1="3" y1="height-3" x2="width-5" y2="height-3"/>
  520. </draw_ops>
  521.  
  522. <draw_ops name="button_bg_unfocused_prelight">
  523.     <include name="button_bg_unfocused"/>
  524.     <tint color="shade/gtk:bg[NORMAL]/1.5" alpha="0.3" x="3" y="3" width="width-5" height="height-5"/>
  525. </draw_ops>
  526.  
  527. <draw_ops name="button_bg_unfocused_pressed">
  528.     <!-- outside highlight -->
  529.     <gradient type="vertical" x="width-2" y="2" width="1" height="height-4">
  530.           <color value="shade/gtk:bg[NORMAL]/1.25"/>
  531.           <color value="shade/gtk:bg[NORMAL]/1.05"/>
  532.     </gradient>
  533.     <gradient type="vertical" x="width-1" y="3" width="1" height="height-6">
  534.           <color value="shade/gtk:bg[NORMAL]/1.25"/>
  535.           <color value="shade/gtk:bg[NORMAL]/1.05"/>
  536.     </gradient>
  537.     <line color="shade/gtk:bg[NORMAL]/1.05" x1="2" y1="height-2" x2="width-3" y2="height-2"/>
  538.     <line color="shade/gtk:bg[NORMAL]/1.05" x1="3" y1="height-1" x2="width-4" y2="height-1"/>
  539.  
  540.     <!-- border outline -->
  541.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="3" y1="1" x2="width-4" y2="1"/>
  542.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="3" y1="height-2" x2="width-4" y2="height-2"/>
  543.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="1" y1="3" x2="1" y2="height-4"/>
  544.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-2" y1="3" x2="width-2" y2="height-4"/>
  545.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="2" x2="width-3" y2="2"/>
  546.     <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="height-3" x2="width-3" y2="height-3"/>
  547.  
  548.     <!-- inside shadow -->
  549.     <line color="shade/gtk:bg[NORMAL]/0.8" x1="3" y1="2" x2="width-4" y2="2"/>
  550.     <line color="shade/gtk:bg[NORMAL]/0.75" x1="2" y1="3" x2="2" y2="height-4"/>
  551.  
  552.     <!-- fill gradient -->
  553.     <gradient type="vertical" x="3" y="3" width="width-5" height="height-6">
  554.           <color value="shade/gtk:bg[NORMAL]/0.9"/>
  555.         <color value="shade/gtk:bg[NORMAL]/0.85"/>
  556.     </gradient>
  557.     <line color="shade/gtk:bg[NORMAL]/0.85" x1="3" y1="height-3" x2="width-5" y2="height-3"/>
  558. </draw_ops>
  559.  
  560. <!-- ::: ICONS ::: -->
  561. <!--
  562.     using a minimum icon size until there is a proper way to specify relative sizes
  563.     unfortunately it's logically impossible to always center the icons on non-square
  564.     buttons (utility windows) without distortion.
  565.  
  566.     icon_size = (Bmin`max`height-Bpad*2)
  567.     hpadding = (width - icon_size) / 2 = ((width-(Bmin`max`height-Bpad*2))/2)
  568.     vpadding = (height - icon_size) / 2 = ((height-(Bmin`max`height-Bpad*2))/2)
  569. -->
  570.  
  571. <!-- menu icon -->
  572. <draw_ops name="menu_button_icon">
  573.     <!--<icon  x="0" y="0" width="width" height="height"/>-->
  574.     <icon  x="(width-mini_icon_width)/2" y="(height-mini_icon_height)/2" width="mini_icon_width" height="mini_icon_height"/>
  575. </draw_ops>
  576.  
  577. <draw_ops name="menu_button_icon_unfocused">
  578.     <!--<icon  x="0" y="0" width="width" height="height" alpha="0.5"/>-->
  579.     <icon  x="(width-mini_icon_width)/2" y="(height-mini_icon_height)/2" width="mini_icon_width" height="mini_icon_height"/>
  580. </draw_ops>
  581.  
  582. <draw_ops name="menu_button_normal">
  583.       <include name="menu_button_icon"/>
  584. </draw_ops>
  585. <draw_ops name="menu_button_pressed">
  586.       <include name="menu_button_icon"/>
  587. </draw_ops>
  588. <draw_ops name="menu_button_unfocused">
  589.       <include name="menu_button_icon_unfocused"/>
  590. </draw_ops>
  591.  
  592. <!-- close icon -->
  593. <draw_ops name="close_button_icon">
  594.     <!-- outside border -->
  595.  
  596.     <!-- main cross  -->
  597.     <line color="shade/gtk:bg[SELECTED]/0.7" width="4"
  598.         x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="((height-(Bmin`max`height-Bpad*2))/2)"
  599.         x2="width - ((width-(Bmin`max`height-Bpad*2))/2) - 1" y2="height - ((height-(Bmin`max`height-Bpad*2))/2) - 1"/>
  600.     <line color="shade/gtk:bg[SELECTED]/0.7" width="4"
  601.         x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="height - ((height-(Bmin`max`height-Bpad*2))/2) - 1"
  602.         x2="width - ((width-(Bmin`max`height-Bpad*2))/2) - 1" y2="((height-(Bmin`max`height-Bpad*2))/2)"/>
  603.     <!-- top-left -->
  604.     <tint color="shade/gtk:bg[SELECTED]/0.7" alpha="1.0"
  605.         x="((width-(Bmin`max`height-Bpad*2))/2)" y="((height-(Bmin`max`height-Bpad*2))/2)-1"
  606.         width="2" height="1"/>
  607.     <tint color="shade/gtk:bg[SELECTED]/0.7" alpha="1.0"
  608.         x="((width-(Bmin`max`height-Bpad*2))/2)-1" y="((height-(Bmin`max`height-Bpad*2))/2)/1"
  609.         width="1" height="2"/>
  610.     <!-- top-right -->
  611.     <tint color="shade/gtk:bg[SELECTED]/0.7" alpha="1.0"
  612.         x="width - ((width-(Bmin`max`height-Bpad*2))/2) -2" y="((height-(Bmin`max`height-Bpad*2))/2)-1"
  613.         width="2" height="1"/>
  614.     <tint color="shade/gtk:bg[SELECTED]/0.7" alpha="1.0"
  615.         x="width - ((width-(Bmin`max`height-Bpad*2))/2)" y="((height-(Bmin`max`height-Bpad*2))/2)"
  616.         width="1" height="2"/>
  617.     <!-- bottom-left -->
  618.     <tint color="shade/gtk:bg[SELECTED]/0.7" alpha="1.0"
  619.         x="((width-(Bmin`max`height-Bpad*2))/2)" y="height - ((height-(Bmin`max`height-Bpad*2))/2)"
  620.         width="2" height="1"/>
  621.     <tint color="shade/gtk:bg[SELECTED]/0.7" alpha="1.0"
  622.         x="((width-(Bmin`max`height-Bpad*2))/2)-1" y="height - ((height-(Bmin`max`height-Bpad*2))/2)-2"
  623.         width="1" height="2"/>
  624.     <!-- bottom-right -->
  625.     <tint color="shade/gtk:bg[SELECTED]/0.7" alpha="1.0"
  626.         x="width - ((width-(Bmin`max`height-Bpad*2))/2) -2" y="height - ((height-(Bmin`max`height-Bpad*2))/2)"
  627.         width="2" height="1"/>
  628.     <tint color="shade/gtk:bg[SELECTED]/0.7" alpha="1.0"
  629.         x="width - ((width-(Bmin`max`height-Bpad*2))/2)" y="height - ((height-(Bmin`max`height-Bpad*2))/2)-2"
  630.         width="1" height="2"/>
  631.  
  632.     <!-- icon -->
  633.     <line color="blend/gtk:bg[SELECTED]/#FFFFFF/0.75" width="2"
  634.         x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="((height-(Bmin`max`height-Bpad*2))/2)"
  635.         x2="width - ((width-(Bmin`max`height-Bpad*2))/2) - 1" y2="height - ((height-(Bmin`max`height-Bpad*2))/2) - 1"/>
  636.     <line color="blend/gtk:bg[SELECTED]/#FFFFFF/0.75" width="1"
  637.         x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="((height-(Bmin`max`height-Bpad*2))/2)"
  638.         x2="width- ((width-(Bmin`max`height-Bpad*2))/2)" y2="height - ((height-(Bmin`max`height-Bpad*2))/2)"/>
  639.     <line color="blend/gtk:bg[SELECTED]/#FFFFFF/0.75" width="2"
  640.         x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="height - ((height-(Bmin`max`height-Bpad*2))/2) - 1"
  641.         x2="width - ((width-(Bmin`max`height-Bpad*2))/2) - 1" y2="((height-(Bmin`max`height-Bpad*2))/2)"/>
  642.     <line color="blend/gtk:bg[SELECTED]/#FFFFFF/0.75" width="1"
  643.         x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="height - ((height-(Bmin`max`height-Bpad*2))/2) - 1"
  644.         x2="width - ((width-(Bmin`max`height-Bpad*2))/2)" y2="((height-(Bmin`max`height-Bpad*2))/2) - 1"/>
  645. </draw_ops>
  646.  
  647. <draw_ops name="close_button_icon_unfocused">
  648.     <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.45" width="2"
  649.         x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="((height-(Bmin`max`height-Bpad*2))/2)"
  650.         x2="width-((width-(Bmin`max`height-Bpad*2))/2)-1" y2="height - ((height-(Bmin`max`height-Bpad*2))/2)-1"/>
  651.     <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.45" width="1"
  652.         x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="((height-(Bmin`max`height-Bpad*2))/2)"
  653.         x2="width-((width-(Bmin`max`height-Bpad*2))/2)" y2="height - ((height-(Bmin`max`height-Bpad*2))/2)"/>
  654.     <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.45" width="2"
  655.         x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="height - ((height-(Bmin`max`height-Bpad*2))/2)-1"
  656.         x2="width-((width-(Bmin`max`height-Bpad*2))/2)-1" y2="((height-(Bmin`max`height-Bpad*2))/2)"/>
  657.     <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.45" width="1"
  658.         x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="height - ((height-(Bmin`max`height-Bpad*2))/2)-1"
  659.         x2="width-((width-(Bmin`max`height-Bpad*2))/2)" y2="((height-(Bmin`max`height-Bpad*2))/2) - 1"/>
  660. </draw_ops>
  661.  
  662. <draw_ops name="close_button_normal">
  663.     <include name="button_bg"/>
  664.     <include name="close_button_icon"/>
  665. </draw_ops>
  666. <draw_ops name="close_button_prelight">
  667.     <include name="button_bg_prelight"/>
  668.     <include name="close_button_icon"/>
  669. </draw_ops>
  670. <draw_ops name="close_button_pressed">
  671.     <include name="button_bg_pressed"/>
  672.     <include name="close_button_icon"/>
  673. </draw_ops>
  674. <draw_ops name="close_button_unfocused">
  675.     <include name="button_bg_unfocused"/>
  676.     <include name="close_button_icon_unfocused"/>
  677. </draw_ops>
  678. <draw_ops name="close_button_unfocused_prelight">
  679.     <include name="button_bg_unfocused_prelight"/>
  680.     <include name="close_button_icon_unfocused"/>
  681. </draw_ops>
  682. <draw_ops name="close_button_unfocused_pressed">
  683.     <include name="button_bg_unfocused_pressed"/>
  684.     <include name="close_button_icon_unfocused"/>
  685. </draw_ops>
  686.  
  687. <!-- maximize icon -->
  688. <draw_ops name="maximize_button_icon">
  689.     <!-- outside border -->
  690.     <rectangle color="shade/gtk:bg[SELECTED]/0.7" filled="false"
  691.         x="((width-(Bmin`max`height-Bpad*2))/2)-1" y="((height-(Bmin`max`height-Bpad*2))/2)-1"
  692.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2+1" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2+1"/>
  693.     <rectangle color="shade/gtk:bg[SELECTED]/0.7" filled="false"
  694.         x="((width-(Bmin`max`height-Bpad*2))/2)+1" y="((height-(Bmin`max`height-Bpad*2))/2)+2"
  695.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-3" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-4"/>
  696.  
  697.     <!-- icon -->
  698.     <rectangle color="blend/gtk:bg[SELECTED]/#FFFFFF/0.75" filled="false"
  699.         x="((width-(Bmin`max`height-Bpad*2))/2)" y="((height-(Bmin`max`height-Bpad*2))/2)"
  700.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-1" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-1"/>
  701.     <line color="blend/gtk:bg[SELECTED]/#FFFFFF/0.75" width="1"
  702.         x1="((width-(Bmin`max`height-Bpad*2))/2) + 1" y1="((height-(Bmin`max`height-Bpad*2))/2) + 1"
  703.         x2="width-((width-(Bmin`max`height-Bpad*2))/2)" y2="((height-(Bmin`max`height-Bpad*2))/2) + 1"/>
  704. </draw_ops>
  705.  
  706. <draw_ops name="maximize_button_icon_unfocused">
  707.     <rectangle color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.45" filled="false"
  708.         x="((width-(Bmin`max`height-Bpad*2))/2)" y="((height-(Bmin`max`height-Bpad*2))/2)"
  709.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-1" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-1"/>
  710.     <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.45" width="1"
  711.         x1="((width-(Bmin`max`height-Bpad*2))/2) + 1" y1="((height-(Bmin`max`height-Bpad*2))/2) + 1"
  712.         x2="width-((width-(Bmin`max`height-Bpad*2))/2)" y2="((height-(Bmin`max`height-Bpad*2))/2) + 1"/>
  713. </draw_ops>
  714.  
  715. <draw_ops name="maximize_button_normal">
  716.     <include name="button_bg"/>
  717.     <include name="maximize_button_icon"/>
  718. </draw_ops>
  719. <draw_ops name="maximize_button_prelight">
  720.     <include name="button_bg_prelight"/>
  721.     <include name="maximize_button_icon"/>
  722. </draw_ops>
  723. <draw_ops name="maximize_button_pressed">
  724.     <include name="button_bg_pressed"/>
  725.     <include name="maximize_button_icon"/>
  726. </draw_ops>
  727. <draw_ops name="maximize_button_unfocused">
  728.     <include name="button_bg_unfocused"/>
  729.     <include name="maximize_button_icon_unfocused"/>
  730. </draw_ops>
  731. <draw_ops name="maximize_button_unfocused_prelight">
  732.     <include name="button_bg_unfocused_prelight"/>
  733.     <include name="maximize_button_icon_unfocused"/>
  734. </draw_ops>
  735. <draw_ops name="maximize_button_unfocused_pressed">
  736.     <include name="button_bg_unfocused_pressed"/>
  737.     <include name="maximize_button_icon_unfocused"/>
  738. </draw_ops>
  739.  
  740. <!-- restore icon -->
  741. <draw_ops name="restore_button_icon">
  742.     <!-- outside border -->
  743.     <rectangle color="shade/gtk:bg[SELECTED]/0.7" filled="false"
  744.         x="((width-(Bmin`max`height-Bpad*2))/2)" y="((height-(Bmin`max`height-Bpad*2))/2)"
  745.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-1" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-1"/>
  746.     <rectangle color="shade/gtk:bg[SELECTED]/0.7" filled="false"
  747.         x="((width-(Bmin`max`height-Bpad*2))/2)+2" y="((height-(Bmin`max`height-Bpad*2))/2)+3"
  748.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-5" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-6"/>
  749.  
  750.     <!-- icon -->
  751.     <rectangle color="blend/gtk:bg[SELECTED]/#FFFFFF/0.75" filled="false"
  752.         x="((width-(Bmin`max`height-Bpad*2))/2) + 1" y="((height-(Bmin`max`height-Bpad*2))/2) + 1"
  753.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-3" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-3"/>
  754.     <line color="blend/gtk:bg[SELECTED]/#FFFFFF/0.75" width="1"
  755.         x1="((width-(Bmin`max`height-Bpad*2))/2) + 2" y1="((height-(Bmin`max`height-Bpad*2))/2) + 2"
  756.         x2="width-((width-(Bmin`max`height-Bpad*2))/2) - 2" y2="((height-(Bmin`max`height-Bpad*2))/2) + 2"/>
  757. </draw_ops>
  758.  
  759. <draw_ops name="restore_button_icon_unfocused">
  760.     <rectangle color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.45" filled="false"
  761.         x="((width-(Bmin`max`height-Bpad*2))/2) + 1" y="((height-(Bmin`max`height-Bpad*2))/2) + 1"
  762.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-3" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-3"/>
  763.     <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.45" width="1"
  764.         x1="((width-(Bmin`max`height-Bpad*2))/2) + 2" y1="((height-(Bmin`max`height-Bpad*2))/2) + 2"
  765.         x2="width-((width-(Bmin`max`height-Bpad*2))/2) - 2" y2="((height-(Bmin`max`height-Bpad*2))/2) + 2"/>
  766. </draw_ops>
  767.  
  768. <draw_ops name="restore_button_normal">
  769.     <include name="button_bg"/>
  770.     <include name="restore_button_icon"/>
  771. </draw_ops>
  772. <draw_ops name="restore_button_prelight">
  773.     <include name="button_bg_prelight"/>
  774.     <include name="restore_button_icon"/>
  775. </draw_ops>
  776. <draw_ops name="restore_button_pressed">
  777.     <include name="button_bg_pressed"/>
  778.     <include name="restore_button_icon"/>
  779. </draw_ops>
  780. <draw_ops name="restore_button_unfocused">
  781.     <include name="button_bg_unfocused"/>
  782.     <include name="restore_button_icon_unfocused"/>
  783. </draw_ops>
  784. <draw_ops name="restore_button_unfocused_prelight">
  785.     <include name="button_bg_unfocused_prelight"/>
  786.     <include name="restore_button_icon_unfocused"/>
  787. </draw_ops>
  788. <draw_ops name="restore_button_unfocused_pressed">
  789.     <include name="button_bg_unfocused_pressed"/>
  790.     <include name="restore_button_icon_unfocused"/>
  791. </draw_ops>
  792.  
  793. <!-- minimize icon -->
  794. <draw_ops name="minimize_button_icon">
  795.     <!-- outside border -->
  796.     <rectangle color="shade/gtk:bg[SELECTED]/0.7" filled="false"
  797.         x="((width-(Bmin`max`height-Bpad*2))/2)-1" y="height - ((height-(Bmin`max`height-Bpad*2))/2) - 3"
  798.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2+1" height="3"/>
  799.     <!-- icon -->
  800.     <rectangle color="blend/gtk:bg[SELECTED]/#FFFFFF/0.75" filled="true"
  801.         x="((width-(Bmin`max`height-Bpad*2))/2)" y="height - ((height-(Bmin`max`height-Bpad*2))/2) - 2"
  802.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2" height="2"/>
  803. </draw_ops>
  804.  
  805. <draw_ops name="minimize_button_icon_unfocused">
  806.     <rectangle color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.45" filled="true"
  807.         x="((width-(Bmin`max`height-Bpad*2))/2)" y="height - ((height-(Bmin`max`height-Bpad*2))/2) - 2"
  808.         width="width-((width-(Bmin`max`height-Bpad*2))/2)*2" height="2"/>
  809. </draw_ops>
  810.  
  811. <draw_ops name="minimize_button_normal">
  812.     <include name="button_bg"/>
  813.     <include name="minimize_button_icon"/>
  814. </draw_ops>
  815. <draw_ops name="minimize_button_prelight">
  816.     <include name="button_bg_prelight"/>
  817.     <include name="minimize_button_icon"/>
  818. </draw_ops>
  819. <draw_ops name="minimize_button_pressed">
  820.     <include name="button_bg_pressed"/>
  821.     <include name="minimize_button_icon"/>
  822. </draw_ops>
  823. <draw_ops name="minimize_button_unfocused">
  824.     <include name="button_bg_unfocused"/>
  825.     <include name="minimize_button_icon_unfocused"/>
  826. </draw_ops>
  827. <draw_ops name="minimize_button_unfocused_prelight">
  828.     <include name="button_bg_unfocused_prelight"/>
  829.     <include name="minimize_button_icon_unfocused"/>
  830. </draw_ops>
  831. <draw_ops name="minimize_button_unfocused_pressed">
  832.     <include name="button_bg_unfocused_pressed"/>
  833.     <include name="minimize_button_icon_unfocused"/>
  834. </draw_ops>
  835.  
  836. <draw_ops name="blank">
  837. <!-- nothing -->
  838. </draw_ops>
  839.  
  840. <!-- ::: FRAME STYLES ::: -->
  841. <frame_style name="normal" geometry="normal">
  842.     <piece position="entire_background" draw_ops="round_bevel_unfocused"/>
  843.     <piece position="title" draw_ops="title_unfocused"/>
  844.     <button function="close" state="normal" draw_ops="close_button_unfocused"/>
  845.     <button function="close" state="pressed" draw_ops="close_button_unfocused_pressed"/>
  846.     <button function="close" state="prelight" draw_ops="close_button_unfocused_prelight"/>
  847.     <button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
  848.     <button function="maximize" state="pressed" draw_ops="maximize_button_unfocused_pressed"/>
  849.     <button function="maximize" state="prelight" draw_ops="maximize_button_unfocused_prelight"/>
  850.     <button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
  851.     <button function="minimize" state="pressed" draw_ops="minimize_button_unfocused_pressed"/>
  852.     <button function="minimize" state="prelight" draw_ops="minimize_button_unfocused_prelight"/>
  853.     <button function="menu" state="normal" draw_ops="menu_button_normal"/>
  854.     <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
  855. </frame_style>
  856.  
  857. <frame_style name="normal_shaded" geometry="shaded" parent="normal">
  858.     <piece position="entire_background" draw_ops="round_bevel_unfocused_shaded"/>
  859. </frame_style>
  860.  
  861. <frame_style name="focused" geometry="normal" parent="normal">
  862.     <piece position="entire_background" draw_ops="round_bevel"/>
  863.     <piece position="title" draw_ops="title"/>
  864.     <button function="close" state="normal" draw_ops="close_button_normal"/>
  865.     <button function="close" state="pressed" draw_ops="close_button_pressed"/>
  866.     <button function="close" state="prelight" draw_ops="close_button_prelight"/>
  867.     <button function="maximize" state="normal" draw_ops="maximize_button_normal"/>
  868.     <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
  869.     <button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
  870.     <button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
  871.     <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
  872.     <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
  873. </frame_style>
  874.  
  875. <frame_style name="focused_shaded" geometry="shaded" parent="focused">
  876.     <piece position="entire_background" draw_ops="round_bevel_shaded"/>
  877. </frame_style>
  878.  
  879. <frame_style name="normal_maximized" geometry="normal_maximized" parent="normal">
  880.     <piece position="entire_background" draw_ops="bevel_maximized_unfocused"/>
  881.     <button function="maximize" state="normal" draw_ops="restore_button_unfocused"/>
  882.     <button function="maximize" state="pressed" draw_ops="restore_button_unfocused_pressed"/>
  883.     <button function="maximize" state="prelight" draw_ops="restore_button_unfocused_prelight"/>
  884. </frame_style>
  885.  
  886. <frame_style name="focused_maximized" geometry="normal_maximized" parent="focused">
  887.     <piece position="entire_background" draw_ops="bevel_maximized"/>
  888.     <button function="maximize" state="normal" draw_ops="restore_button_normal"/>
  889.     <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
  890.     <button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
  891. </frame_style>
  892.  
  893. <frame_style name="border" geometry="border" parent="normal">
  894.     <piece position="entire_background" draw_ops="border"/>
  895.     <piece position="title" draw_ops="blank"/>
  896. </frame_style>
  897.  
  898. <frame_style name="utility_normal" geometry="utility" parent="normal">
  899.     <piece position="entire_background" draw_ops="bevel_unfocused"/>
  900. </frame_style>
  901. <frame_style name="utility_focused" geometry="utility" parent="focused">
  902.     <piece position="entire_background" draw_ops="bevel"/>
  903. </frame_style>
  904. <frame_style name="utility_focused_shaded" geometry="utility" parent="focused_shaded">
  905.     <piece position="entire_background" draw_ops="bevel_shaded"/>
  906. </frame_style>
  907.  
  908. <frame_style_set name="normal">
  909.     <frame focus="yes" state="normal" resize="both" style="focused"/>
  910.     <frame focus="no" state="normal" resize="both" style="normal"/>
  911.     <frame focus="yes" state="maximized" style="focused_maximized"/>
  912.     <frame focus="no" state="maximized" style="normal_maximized"/>
  913.     <frame focus="yes" state="shaded" style="focused_shaded"/>
  914.     <frame focus="no" state="shaded" style="normal_shaded"/>
  915.     <frame focus="yes" state="maximized_and_shaded" style="focused_maximized"/>
  916.     <frame focus="no" state="maximized_and_shaded" style="normal_maximized"/>
  917. </frame_style_set>
  918.  
  919. <frame_style_set name="utility" parent="normal">
  920.     <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
  921.     <frame focus="no" state="normal" resize="both" style="utility_normal"/>
  922.     <!-- this is a bunch of crack since utility windows shouldn't be maximized -->
  923.     <frame focus="yes" state="maximized" style="focused"/>
  924.     <frame focus="no" state="maximized" style="normal"/>
  925.     <frame focus="yes" state="shaded" style="utility_focused_shaded"/>
  926.     <frame focus="no" state="shaded" style="utility_normal"/>
  927.     <frame focus="yes" state="maximized_and_shaded" style="focused_shaded"/>
  928.     <frame focus="no" state="maximized_and_shaded" style="normal"/>
  929. </frame_style_set>
  930.  
  931. <frame_style_set name="border">
  932.     <frame focus="yes" state="normal" resize="both" style="border"/>
  933.     <frame focus="no" state="normal" resize="both" style="border"/>
  934.     <frame focus="yes" state="maximized" style="border"/>
  935.     <frame focus="no" state="maximized" style="border"/>
  936.     <frame focus="yes" state="shaded" style="border"/>
  937.     <frame focus="no" state="shaded" style="border"/>
  938.     <frame focus="yes" state="maximized_and_shaded" style="border"/>
  939.     <frame focus="no" state="maximized_and_shaded" style="border"/>
  940. </frame_style_set>
  941.  
  942. <window type="normal" style_set="normal"/>
  943. <window type="dialog" style_set="normal"/>
  944. <window type="modal_dialog" style_set="normal"/>
  945. <window type="menu" style_set="normal"/>
  946. <window type="utility" style_set="utility"/>
  947. <window type="border" style_set="border"/>
  948.  
  949. <menu_icon function="close" state="normal" draw_ops="close_button_icon_unfocused"/>
  950. <menu_icon function="maximize" state="normal" draw_ops="maximize_button_icon_unfocused"/>
  951. <menu_icon function="unmaximize" state="normal" draw_ops="restore_button_icon_unfocused"/>
  952. <menu_icon function="minimize" state="normal" draw_ops="minimize_button_icon_unfocused"/>
  953.  
  954. </metacity_theme>
  955.